-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
v6: Cleanup utilities #41818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6: Cleanup utilities #41818
Conversation
|
Why remove the print display utilities? It's common for business apps to have certain pages which need to support printing to PDF, and the print display utilities have been very handy to hide or display content as needed when printing. |
Not opposed to bringing back, but it's definitely a less common use case overall. I think at the very least we'd disable having |
|
While less common, it has still been a useful feature to always have available. E.g. I made a library for Bootstrap projects which uses |
The utility API has always been extensible, so enabling isn't a huge issue unless you're pulling in from CSS only vs source Sass. As long as you're able to modify the map—which is documented—we could keep the ability and just disable it to start. |
- Split several utilities across smaller pages - New underline thickness utility - Updated text-wrap utility to use `text-wrap` property, removes white-space utils - Adds a dozen new width utilities for now—TBD if we keep this, they're not documented yet - Redoes the color utilities—color, background color, border color, link color—to use color-mix without attribute selectors. Faster, simpler, better support for overriding other components. - Redesigns margin, padding, gap utils pages—shoutout Tailwind for having a better visualization here. Cribbed their approach to emphasize spacing utilities. - Fixed up a lot of usages of color utilities, likely more to do - Fixed up a lot of broken links, probably also more to do
…ocs bottom nav, updated ref tables
* Split font utilities, update API to do more pseudo classes, drop display type classes * Improve display docs, remove print display utils * Document gap and grid utils, rename a couple classes * better url * Fix color-mix * Undo utilities API change for now * fix api changes * Bundlewatch * Linter cleanup * Massive utilities update - Split several utilities across smaller pages - New underline thickness utility - Updated text-wrap utility to use `text-wrap` property, removes white-space utils - Adds a dozen new width utilities for now—TBD if we keep this, they're not documented yet - Redoes the color utilities—color, background color, border color, link color—to use color-mix without attribute selectors. Faster, simpler, better support for overriding other components. - Redesigns margin, padding, gap utils pages—shoutout Tailwind for having a better visualization here. Cribbed their approach to emphasize spacing utilities. - Fixed up a lot of usages of color utilities, likely more to do - Fixed up a lot of broken links, probably also more to do * New details component, simpler a11y color contrast warning, updated docs bottom nav, updated ref tables * Avoid name collision, update to demo thickness hover * Rename $new-font-sizes to $font-sizes * Update width and height docs * Few cleanup tweaks * Remove unused attribute selector for borders * Fixes * more bundle * fixes * spelling * add json
Unrelated:
oklchcolor space on accident recently in v6: Drop component variants for global.theme-*classes #41789 without checking it out.API:
font-sizeandline-height.Display:
Flex & Grid:
.grid-cols-*classes to the utility API.grid-auto-flowgridandgapdocs pages for utilitiesType/Font:
.font-bodyutility. This joins the existing.font-monospace..display-*typography classes—their name is confusing next todisplayproperty utilities..text-*utilities that setfont-sizeandline-heightin sizesxs—6xl. This also updates the font-size.fs-{size}utilities.font-size,font-family,font-weight, andline-heightColors:
.text-{color}is now.fg-{color}to match background utilities.text-body-emphasis,.text-body-secondary, and.text-body-tertiaryare no more.fg-1,.fg-2, and.fg-3.fg-{color}options.bg-{color}-subtleis now.bg-subtle-{color}.bg-muted-{color}utilitiescolor-mix(). For example:Links/Underlines
Link and underline utilities have some new names, values, and all around new utilities. Most name changes were to avoid unnecessarily tying these classes to hyperlinks alone, when underlining can also be a form of emphasis.
.link-opacity-{value}is now.link-{value}.link-underline-opacity-{value}is now.link-underline-{value}.link-offset-{value}is now.underline-offset-{value}.link-underline-{color}is now.underline-{color}.underline-thickness-{value}Todos:
Follow-ups:
hover:opacity-50andmd:d-block)statetopseudo-classesandpseudo-elements